<?php /* Smarty version 2.6.26, created on 2018-07-25 19:30:00
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/member%5Ctemplates/goods_act/seckill.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'import', 'E:\\WWW\\40.125.208.171\\vweb/member\\templates/goods_act/seckill.html', 1, false),array('modifier', 'img_size', 'E:\\WWW\\40.125.208.171\\vweb/member\\templates/goods_act/seckill.html', 48, false),)), $this); ?>
<?php echo $this->_plugins['function']['import'][0][0]->import(array('file' => "index/header_shop.html",'title' => "优惠促销"), $this);?>

<style type="text/css"> 
.cbx{ width:500px; float:left; }
.cbx .l{ width:60px; float:left; } 
.cbx .l a.simg{ width:60px; height:60px; line-height:60px; border:1px solid #efefef; padding:1px; float:left;}
.cbx .l a.simg img{ max-height:60px; max-width:60px; }
.cbx .r{ width:350px; float:left; }
.cbx .r .ttl{ width:100%; padding:0 0 0 5px; float:left;}
.cbx .r .ttl a{ text-align:left; font-size:12px; color:#333; padding:0 10px 0 10px; line-height:20px; float:left;  }
.cbx .r .ttl span{font-size:12px;line-height:22px; padding:0 10px 0 20px; color:#999999; text-align:left; float: left;} 
.cbx .r .intro{ width:440px; text-align:left; line-height:18px; padding:6px 0 0 15px; color:#999999; float:left;}

 
input.bfb{ padding:4px; text-align:center; }
input.submit2{ background:#00AB00; color:#fff; padding:5px 15px; float:left; }

.comm_box{ width:100%; float:left;  }
.comm_box span{ width:65px; margin-left:10px; float:left; }
.comm_box span i{ width:50px; padding:3px; border:1px solid #efefef; background:#f2f2f2; text-align:center; float:left; }
.comm_box span input{ width:50px; padding:3px; text-align:center; float:left; }
.comm_box a{ background:#D4D5D7; color:#333; padding:4px 5px 4px;border-radius:2px; float:left; }
</style> 
<div class="tab_name"><span>优惠促销</span></div> 
<div class="filter">
	<a href="?m=goods_act&a=seckill&type=0"<?php if ($_GET['type'] == '0' || $_GET['type'] == ''): ?> class="ch"<?php endif; ?>>未开始</a>
	<a href="?m=goods_act&a=seckill&type=1"<?php if ($_GET['type'] == '1'): ?> class="ch"<?php endif; ?>>优惠中</a>
	<a href="?m=goods_act&a=seckill&type=2"<?php if ($_GET['type'] == '2'): ?> class="ch"<?php endif; ?>>结束优惠</a> 
</div>
<div class="actbtn">
	<a href="?m=goods_act&a=seckill_edit" class="add">添加促销</a>
</div>
<div class="lbox">
	<table width="100%" class="ltable">
		<thead>
			<tr>  
				<th>商品名</th>
				<th width="70">状态</th>
				<th width="130">开始/结束</th> 
				<th width="130">操作设置</th> 
			</tr>
		</thead> 
		<tbody>  
	<?php if ($this->_tpl_vars['data']['list']): ?>	
		<?php $_from = $this->_tpl_vars['data']['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>		 
			<tr> 
				<td style="padding:12px 0 12px 5px;">
				<div class="cbx">
					<div class="l"><a class="simg" href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['gid']; ?>
"><img src="<?php echo $this->_tpl_vars['__IMG__']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['goods']['images'])) ? $this->_run_mod_handler('img_size', true, $_tmp, '60x60') : $this->_plugins['modifier']['img_size'][0][0]->img_size($_tmp, '60x60')); ?>
"/></a></div>
					<div class="r">
						<div class="ttl"><a href="index.php?m=goods&a=detail&id=<?php echo $this->_tpl_vars['i']['gid']; ?>
" target="_blank"><?php echo $this->_tpl_vars['i']['goods']['title']; ?>
</a></div> 
						<div class="intro">
							价格：<?php echo $this->_tpl_vars['i']['goods']['price']; ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							库存：<?php if ($this->_tpl_vars['i']['goods']['stock'] == '0'): ?>无货<?php else: ?><?php echo $this->_tpl_vars['i']['goods']['stock']; ?>
<?php endif; ?>
						</div>	
					</div>
				</div>	
				</td>  
				<td><?php if ($this->_tpl_vars['i']['status'] == '1'): ?>通过<?php else: ?>提交<?php endif; ?></td>
				<td><?php echo $this->_tpl_vars['i']['start_time']; ?>
<br><?php echo $this->_tpl_vars['i']['end_time']; ?>
</td> 
				<td>
					<a href="?m=goods_act&a=seckill_edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="edit">编辑</a>
					<a href="?m=goods_act&a=seckill_del&id=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a>
				</td>
			</tr>
		<?php endforeach; endif; unset($_from); ?> 
	<?php else: ?> 
		<tr><td colspan="4" class="btm"><div class="nomsg"><i></i><span>您暂时还没有优惠活动~</span></div></td></tr>
	<?php endif; ?>		
		</tbody>
	</table>
	<?php if ($this->_tpl_vars['data']['page']): ?><div class="page"><?php echo $this->_tpl_vars['data']['page']; ?>
</div><?php endif; ?>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 